﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace LetLord.Models
{
    [Table("TenantPreferences")]
    public class TenantPreferences
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int TenantPreferencesId { get; set; }
        public string Name { get; set; }
        public int Weighting { get; set; }
        public bool IsSelected { get; set; }

        [NotMapped]
        public List<PreferenceOption> TenantPropertyPreferences { get; set; }

        // A list of TenantPreferences belong to 1 Tenant
        public int UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual Tenant Tenant { get; set; }
    }
}